﻿namespace WinForms.ControlList.Systems
{
    using Bll.Systems;
    using Library;
    using PublicStaticClass.UIControl;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;
    using WinForms;
    using WinForms.Properties;

    public class FrmhelpsList : WindowBase
    {
        private Button btnAddNew;
        private Button btnChongAll;
        private Button btnDelele;
        private Button btnSelectAll;
        private string[] checkPopIsUse = new string[3];
        private string[] CheckPopName = new string[] { "New", "Edit", "Delete" };
        private DataGridViewCheckBoxColumn chk_chkItem;
        private IContainer components = null;
        private DataGridView DataGridList;
        private DataGridViewTextBoxColumn dghelpid;
        private DataGridViewTextBoxColumn dghelpLastUpdateTime;
        private DataGridViewTextBoxColumn dghelpRemark;
        private DataGridViewTextBoxColumn dghelpTitle;
        private DataGridViewTextBoxColumn helpid;
        private DataGridViewTextBoxColumn helpLastUpdateTime;
        private DataGridViewTextBoxColumn helpRemark;
        private DataGridViewTextBoxColumn helpTitle;
        private DataGridViewImageColumn imgDelete;
        private DataGridViewImageColumn imgEdit;
        private Label label1;
        private Label lblWhere;
        private Navigator navigator_Page;
        private Panel pan_AllPanel;
        private Panel pan_AllPlanes;
        private Panel pan_Bottoms;
        private Panel pan_Dock;
        private Panel pan_DockBottom;
        private Panel pan_DockLeft;
        private Panel pan_DockRight;
        private Panel pan_Lefts;
        private Panel pan_Rights;
        private Panel pan_Top;
        private Panel pan_TopJianGe;
        private Panel pan_TopLeft;
        private Panel pan_TopRight;
        private Panel pan_ZhongJian;
        private Panel pane_TopT;
        private Panel panel1;
        private Panel panel10;
        private Panel panel11;
        private Panel panel12;
        private Panel panel13;
        private Panel panel14;
        private Panel panel15;
        private Panel panel2;
        private Panel panel3;
        private Panel panel4;
        private Panel panel5;
        private Panel panel8;
        private Panel panel9;

        public FrmhelpsList()
        {
            this.InitializeComponent();
        }

        private void btnAddNew_Click(object sender, EventArgs e)
        {
            FrmhelpsAdd add = new FrmhelpsAdd();
            if (DialogResult.OK == add.ShowDialog())
            {
                this.DatePageReadLoad();
            }
            add.Dispose();
        }

        private void btnChongAll_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < this.DataGridList.Rows.Count; i++)
            {
                this.DataGridList.Rows[i].Cells[0].Value = "False";
            }
        }

        private void btnDelele_Click(object sender, EventArgs e)
        {
            try
            {
                string str = "";
                for (int i = 0; i < this.DataGridList.Rows.Count; i++)
                {
                    if (this.DataGridList.Rows[i].Cells[0].FormattedValue.ToString() == "True")
                    {
                        helpsBll.Delete(int.Parse(this.DataGridList.Rows[i].Cells[1].Value.ToString()));
                        str = str + this.DataGridList.Rows[i].Cells[1].Value + ",";
                    }
                }
                this.DatePageReadLoad();
                WorkLogBll.AddNewLog("删除 编号:" + str, "", PublicAppliction.LoginUser);
            }
            catch (Exception exception)
            {
                ErrorsBll.NewException(exception, PublicAppliction.LoginUser);
            }
        }

        private void btnSelectAll_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < this.DataGridList.Rows.Count; i++)
            {
                if (this.DataGridList.Rows[i].Cells[0].FormattedValue.ToString() == "True")
                {
                    this.DataGridList.Rows[i].Cells[0].Value = "False";
                }
                else
                {
                    this.DataGridList.Rows[i].Cells[0].Value = "True";
                }
            }
        }

        protected void DataGrid_bind()
        {
            try
            {
                DataTable table = new DataTable();
                int pageCurrent = this.navigator_Page.PageCurrent;
                if (this.lblWhere.Text != "")
                {
                    table = helpsBll.GetPageList(PublicAppliction.PageCount, pageCurrent, this.lblWhere.Text);
                }
                else
                {
                    table = helpsBll.GetPageList(PublicAppliction.PageCount, pageCurrent, "");
                }
                int num2 = GetTableColCount.ReturnTableColCount("helps", "helps", this.lblWhere.Text);
                this.DataGridList.AutoGenerateColumns = false;
                this.DataGridList.DataSource = table;
                this.navigator_Page.DataSource = table;
                this.navigator_Page.RowCount = num2;
            }
            catch (Exception exception)
            {
                throw exception;
            }
        }

        private void DataGridList_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex != -1)
            {
                if (e.ColumnIndex == this.DataGridList.Columns["imgEdit"].Index)
                {
                    FrmhelpsEdit edit = new FrmhelpsEdit(int.Parse(this.DataGridList.Rows[e.RowIndex].Cells[1].Value.ToString()));
                    if (DialogResult.OK == edit.ShowDialog())
                    {
                        this.DatePageReadLoad();
                    }
                    edit.Dispose();
                }
                else if (e.ColumnIndex == this.DataGridList.Columns["imgDelete"].Index)
                {
                    string s = this.DataGridList.Rows[e.RowIndex].Cells[1].Value.ToString();
                    if (DialogResult.OK == MessageBox.Show("您确定要删除这条记录?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk))
                    {
                        helpsBll.Delete(int.Parse(s));
                        WorkLogBll.AddNewLog("删除 编号:" + s, "", PublicAppliction.LoginUser);
                    }
                    this.DatePageReadLoad();
                }
            }
        }

        private void DataGridList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
        }

        private void DatePageReadLoad()
        {
            this.DataGrid_bind();
            this.InitPage();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void FrmhelpsList_Load(object sender, EventArgs e)
        {
            this.DataGrid_bind();
            this.InitPage();
        }

        private string GetSelectId(int types)
        {
            string str;
            int num;
            if (types == 0)
            {
                str = "";
                for (num = 0; num < this.DataGridList.Rows.Count; num++)
                {
                    if (this.DataGridList.Rows[num].Cells[0].FormattedValue.ToString() == "True")
                    {
                        str = str + this.DataGridList.Rows[num].Cells[1].Value + ",";
                    }
                }
                return str;
            }
            int num2 = 0;
            str = "";
            for (num = 0; num < this.DataGridList.Rows.Count; num++)
            {
                if (this.DataGridList.Rows[num].Cells[0].FormattedValue.ToString() == "True")
                {
                    str = str + this.DataGridList.Rows[num].Cells[1].Value + ",";
                    num2++;
                }
            }
            if (num2 > 1)
            {
                MessageBox.Show("只能选择一项", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                return "";
            }
            return str.Replace(",", "");
        }

        private void InitializeComponent()
        {
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
            this.btnSelectAll = new System.Windows.Forms.Button();
            this.panel4 = new System.Windows.Forms.Panel();
            this.panel14 = new System.Windows.Forms.Panel();
            this.btnChongAll = new System.Windows.Forms.Button();
            this.btnDelele = new System.Windows.Forms.Button();
            this.panel15 = new System.Windows.Forms.Panel();
            this.btnAddNew = new System.Windows.Forms.Button();
            this.panel1 = new System.Windows.Forms.Panel();
            this.panel5 = new System.Windows.Forms.Panel();
            this.panel3 = new System.Windows.Forms.Panel();
            this.panel2 = new System.Windows.Forms.Panel();
            this.pan_Dock = new System.Windows.Forms.Panel();
            this.pan_AllPanel = new System.Windows.Forms.Panel();
            this.pan_AllPlanes = new System.Windows.Forms.Panel();
            this.DataGridList = new System.Windows.Forms.DataGridView();
            this.chk_chkItem = new System.Windows.Forms.DataGridViewCheckBoxColumn();
            this.helpid = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.helpTitle = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.helpRemark = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.helpLastUpdateTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.imgEdit = new System.Windows.Forms.DataGridViewImageColumn();
            this.imgDelete = new System.Windows.Forms.DataGridViewImageColumn();
            this.panel13 = new System.Windows.Forms.Panel();
            this.panel10 = new System.Windows.Forms.Panel();
            this.panel12 = new System.Windows.Forms.Panel();
            this.lblWhere = new System.Windows.Forms.Label();
            this.panel11 = new System.Windows.Forms.Panel();
            this.navigator_Page = new Library.Navigator();
            this.panel9 = new System.Windows.Forms.Panel();
            this.panel8 = new System.Windows.Forms.Panel();
            this.pan_TopJianGe = new System.Windows.Forms.Panel();
            this.pan_Rights = new System.Windows.Forms.Panel();
            this.pan_Lefts = new System.Windows.Forms.Panel();
            this.pan_Bottoms = new System.Windows.Forms.Panel();
            this.pane_TopT = new System.Windows.Forms.Panel();
            this.pan_DockBottom = new System.Windows.Forms.Panel();
            this.pan_DockRight = new System.Windows.Forms.Panel();
            this.pan_DockLeft = new System.Windows.Forms.Panel();
            this.label1 = new System.Windows.Forms.Label();
            this.pan_Top = new System.Windows.Forms.Panel();
            this.pan_ZhongJian = new System.Windows.Forms.Panel();
            this.pan_TopRight = new System.Windows.Forms.Panel();
            this.pan_TopLeft = new System.Windows.Forms.Panel();
            this.panel4.SuspendLayout();
            this.panel14.SuspendLayout();
            this.panel15.SuspendLayout();
            this.panel1.SuspendLayout();
            this.panel5.SuspendLayout();
            this.pan_Dock.SuspendLayout();
            this.pan_AllPanel.SuspendLayout();
            this.pan_AllPlanes.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.DataGridList)).BeginInit();
            this.panel10.SuspendLayout();
            this.panel12.SuspendLayout();
            this.panel11.SuspendLayout();
            this.pan_Top.SuspendLayout();
            this.pan_ZhongJian.SuspendLayout();
            this.SuspendLayout();
            // 
            // btnSelectAll
            // 
            this.btnSelectAll.Dock = System.Windows.Forms.DockStyle.Right;
            this.btnSelectAll.Location = new System.Drawing.Point(14, 0);
            this.btnSelectAll.Name = "btnSelectAll";
            this.btnSelectAll.Size = new System.Drawing.Size(75, 20);
            this.btnSelectAll.TabIndex = 0;
            this.btnSelectAll.Text = "全 选";
            this.btnSelectAll.UseVisualStyleBackColor = true;
            this.btnSelectAll.Click += new System.EventHandler(this.btnSelectAll_Click);
            // 
            // panel4
            // 
            this.panel4.Controls.Add(this.btnSelectAll);
            this.panel4.Dock = System.Windows.Forms.DockStyle.Right;
            this.panel4.Location = new System.Drawing.Point(520, 3);
            this.panel4.Name = "panel4";
            this.panel4.Size = new System.Drawing.Size(89, 20);
            this.panel4.TabIndex = 8;
            // 
            // panel14
            // 
            this.panel14.Controls.Add(this.btnChongAll);
            this.panel14.Dock = System.Windows.Forms.DockStyle.Right;
            this.panel14.Location = new System.Drawing.Point(609, 3);
            this.panel14.Name = "panel14";
            this.panel14.Size = new System.Drawing.Size(89, 20);
            this.panel14.TabIndex = 7;
            // 
            // btnChongAll
            // 
            this.btnChongAll.Dock = System.Windows.Forms.DockStyle.Right;
            this.btnChongAll.Location = new System.Drawing.Point(14, 0);
            this.btnChongAll.Name = "btnChongAll";
            this.btnChongAll.Size = new System.Drawing.Size(75, 20);
            this.btnChongAll.TabIndex = 0;
            this.btnChongAll.Text = "重 选";
            this.btnChongAll.UseVisualStyleBackColor = true;
            this.btnChongAll.Click += new System.EventHandler(this.btnChongAll_Click);
            // 
            // btnDelele
            // 
            this.btnDelele.Dock = System.Windows.Forms.DockStyle.Right;
            this.btnDelele.Location = new System.Drawing.Point(14, 0);
            this.btnDelele.Name = "btnDelele";
            this.btnDelele.Size = new System.Drawing.Size(75, 20);
            this.btnDelele.TabIndex = 0;
            this.btnDelele.Text = "删 除";
            this.btnDelele.UseVisualStyleBackColor = true;
            this.btnDelele.Click += new System.EventHandler(this.btnDelele_Click);
            // 
            // panel15
            // 
            this.panel15.Controls.Add(this.btnDelele);
            this.panel15.Dock = System.Windows.Forms.DockStyle.Right;
            this.panel15.Location = new System.Drawing.Point(698, 3);
            this.panel15.Name = "panel15";
            this.panel15.Size = new System.Drawing.Size(89, 20);
            this.panel15.TabIndex = 6;
            // 
            // btnAddNew
            // 
            this.btnAddNew.Dock = System.Windows.Forms.DockStyle.Right;
            this.btnAddNew.Location = new System.Drawing.Point(14, 0);
            this.btnAddNew.Name = "btnAddNew";
            this.btnAddNew.Size = new System.Drawing.Size(75, 20);
            this.btnAddNew.TabIndex = 0;
            this.btnAddNew.Text = "新 增";
            this.btnAddNew.UseVisualStyleBackColor = true;
            this.btnAddNew.Click += new System.EventHandler(this.btnAddNew_Click);
            // 
            // panel1
            // 
            this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(246)))), ((int)(((byte)(246)))), ((int)(((byte)(246)))));
            this.panel1.Controls.Add(this.panel5);
            this.panel1.Controls.Add(this.panel4);
            this.panel1.Controls.Add(this.panel14);
            this.panel1.Controls.Add(this.panel15);
            this.panel1.Controls.Add(this.panel3);
            this.panel1.Controls.Add(this.panel2);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(0, 8);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(787, 26);
            this.panel1.TabIndex = 1;
            // 
            // panel5
            // 
            this.panel5.Controls.Add(this.btnAddNew);
            this.panel5.Dock = System.Windows.Forms.DockStyle.Right;
            this.panel5.Location = new System.Drawing.Point(431, 3);
            this.panel5.Name = "panel5";
            this.panel5.Size = new System.Drawing.Size(89, 20);
            this.panel5.TabIndex = 9;
            // 
            // panel3
            // 
            this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel3.Location = new System.Drawing.Point(0, 23);
            this.panel3.Name = "panel3";
            this.panel3.Size = new System.Drawing.Size(787, 3);
            this.panel3.TabIndex = 1;
            // 
            // panel2
            // 
            this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel2.Location = new System.Drawing.Point(0, 0);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(787, 3);
            this.panel2.TabIndex = 0;
            // 
            // pan_Dock
            // 
            this.pan_Dock.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(15)))), ((int)(((byte)(255)))));
            this.pan_Dock.Controls.Add(this.pan_AllPanel);
            this.pan_Dock.Controls.Add(this.pan_DockBottom);
            this.pan_Dock.Controls.Add(this.pan_DockRight);
            this.pan_Dock.Controls.Add(this.pan_DockLeft);
            this.pan_Dock.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pan_Dock.Location = new System.Drawing.Point(0, 32);
            this.pan_Dock.Name = "pan_Dock";
            this.pan_Dock.Size = new System.Drawing.Size(809, 513);
            this.pan_Dock.TabIndex = 5;
            // 
            // pan_AllPanel
            // 
            this.pan_AllPanel.BackColor = System.Drawing.Color.White;
            this.pan_AllPanel.Controls.Add(this.pan_AllPlanes);
            this.pan_AllPanel.Controls.Add(this.pan_Rights);
            this.pan_AllPanel.Controls.Add(this.pan_Lefts);
            this.pan_AllPanel.Controls.Add(this.pan_Bottoms);
            this.pan_AllPanel.Controls.Add(this.pane_TopT);
            this.pan_AllPanel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pan_AllPanel.Location = new System.Drawing.Point(1, 0);
            this.pan_AllPanel.Name = "pan_AllPanel";
            this.pan_AllPanel.Size = new System.Drawing.Size(807, 512);
            this.pan_AllPanel.TabIndex = 3;
            // 
            // pan_AllPlanes
            // 
            this.pan_AllPlanes.Controls.Add(this.DataGridList);
            this.pan_AllPlanes.Controls.Add(this.panel13);
            this.pan_AllPlanes.Controls.Add(this.panel10);
            this.pan_AllPlanes.Controls.Add(this.panel9);
            this.pan_AllPlanes.Controls.Add(this.panel8);
            this.pan_AllPlanes.Controls.Add(this.panel1);
            this.pan_AllPlanes.Controls.Add(this.pan_TopJianGe);
            this.pan_AllPlanes.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pan_AllPlanes.Location = new System.Drawing.Point(10, 10);
            this.pan_AllPlanes.Name = "pan_AllPlanes";
            this.pan_AllPlanes.Size = new System.Drawing.Size(787, 492);
            this.pan_AllPlanes.TabIndex = 4;
            // 
            // DataGridList
            // 
            this.DataGridList.AllowUserToAddRows = false;
            this.DataGridList.AllowUserToDeleteRows = false;
            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
            this.DataGridList.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
            this.DataGridList.BackgroundColor = System.Drawing.Color.WhiteSmoke;
            this.DataGridList.BorderStyle = System.Windows.Forms.BorderStyle.None;
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
            dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            this.DataGridList.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
            this.DataGridList.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.chk_chkItem,
            this.helpid,
            this.helpTitle,
            this.helpRemark,
            this.helpLastUpdateTime,
            this.imgEdit,
            this.imgDelete});
            dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Window;
            dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText;
            dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
            this.DataGridList.DefaultCellStyle = dataGridViewCellStyle8;
            this.DataGridList.Dock = System.Windows.Forms.DockStyle.Fill;
            this.DataGridList.EnableHeadersVisualStyles = false;
            this.DataGridList.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(185)))), ((int)(((byte)(157)))));
            this.DataGridList.Location = new System.Drawing.Point(0, 42);
            this.DataGridList.Name = "DataGridList";
            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.BottomCenter;
            dataGridViewCellStyle9.BackColor = System.Drawing.Color.White;
            dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText;
            dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
            this.DataGridList.RowHeadersDefaultCellStyle = dataGridViewCellStyle9;
            dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            this.DataGridList.RowsDefaultCellStyle = dataGridViewCellStyle10;
            this.DataGridList.RowTemplate.Height = 23;
            this.DataGridList.Size = new System.Drawing.Size(787, 409);
            this.DataGridList.TabIndex = 7;
            this.DataGridList.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridList_CellClick);
            this.DataGridList.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridList_CellDoubleClick);
            // 
            // chk_chkItem
            // 
            dataGridViewCellStyle3.NullValue = false;
            this.chk_chkItem.DefaultCellStyle = dataGridViewCellStyle3;
            this.chk_chkItem.FalseValue = "false";
            this.chk_chkItem.HeaderText = "选项";
            this.chk_chkItem.IndeterminateValue = "";
            this.chk_chkItem.Name = "chk_chkItem";
            this.chk_chkItem.TrueValue = "true";
            this.chk_chkItem.Width = 50;
            // 
            // helpid
            // 
            this.helpid.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
            this.helpid.DataPropertyName = "helpid";
            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle4.BackColor = System.Drawing.Color.White;
            this.helpid.DefaultCellStyle = dataGridViewCellStyle4;
            this.helpid.HeaderText = "编号";
            this.helpid.Name = "helpid";
            this.helpid.ReadOnly = true;
            // 
            // helpTitle
            // 
            this.helpTitle.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
            this.helpTitle.DataPropertyName = "helpTitle";
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle5.BackColor = System.Drawing.Color.White;
            this.helpTitle.DefaultCellStyle = dataGridViewCellStyle5;
            this.helpTitle.HeaderText = "标题";
            this.helpTitle.Name = "helpTitle";
            this.helpTitle.ReadOnly = true;
            // 
            // helpRemark
            // 
            this.helpRemark.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
            this.helpRemark.DataPropertyName = "helpRemark";
            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle6.BackColor = System.Drawing.Color.White;
            this.helpRemark.DefaultCellStyle = dataGridViewCellStyle6;
            this.helpRemark.HeaderText = "内容";
            this.helpRemark.Name = "helpRemark";
            this.helpRemark.ReadOnly = true;
            // 
            // helpLastUpdateTime
            // 
            this.helpLastUpdateTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
            this.helpLastUpdateTime.DataPropertyName = "helpLastUpdateTime";
            dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle7.BackColor = System.Drawing.Color.White;
            this.helpLastUpdateTime.DefaultCellStyle = dataGridViewCellStyle7;
            this.helpLastUpdateTime.HeaderText = "最后更新时间";
            this.helpLastUpdateTime.Name = "helpLastUpdateTime";
            this.helpLastUpdateTime.ReadOnly = true;
            // 
            // imgEdit
            // 
            this.imgEdit.HeaderText = "编辑";
            this.imgEdit.Image = global::WinForms.Properties.Resources.EditBtn;
            this.imgEdit.Name = "imgEdit";
            this.imgEdit.Width = 60;
            // 
            // imgDelete
            // 
            this.imgDelete.HeaderText = "删除";
            this.imgDelete.Image = global::WinForms.Properties.Resources.DeleteBtn;
            this.imgDelete.Name = "imgDelete";
            this.imgDelete.Width = 60;
            // 
            // panel13
            // 
            this.panel13.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel13.Location = new System.Drawing.Point(0, 451);
            this.panel13.Name = "panel13";
            this.panel13.Size = new System.Drawing.Size(787, 10);
            this.panel13.TabIndex = 5;
            // 
            // panel10
            // 
            this.panel10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(202)))), ((int)(((byte)(201)))), ((int)(((byte)(206)))));
            this.panel10.Controls.Add(this.panel12);
            this.panel10.Controls.Add(this.panel11);
            this.panel10.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel10.Location = new System.Drawing.Point(0, 461);
            this.panel10.Name = "panel10";
            this.panel10.Size = new System.Drawing.Size(787, 26);
            this.panel10.TabIndex = 4;
            // 
            // panel12
            // 
            this.panel12.Controls.Add(this.lblWhere);
            this.panel12.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel12.Location = new System.Drawing.Point(0, 0);
            this.panel12.Name = "panel12";
            this.panel12.Size = new System.Drawing.Size(342, 26);
            this.panel12.TabIndex = 1;
            // 
            // lblWhere
            // 
            this.lblWhere.AutoSize = true;
            this.lblWhere.Dock = System.Windows.Forms.DockStyle.Right;
            this.lblWhere.Location = new System.Drawing.Point(342, 0);
            this.lblWhere.Name = "lblWhere";
            this.lblWhere.Size = new System.Drawing.Size(0, 12);
            this.lblWhere.TabIndex = 0;
            this.lblWhere.Visible = false;
            // 
            // panel11
            // 
            this.panel11.Controls.Add(this.navigator_Page);
            this.panel11.Dock = System.Windows.Forms.DockStyle.Right;
            this.panel11.Location = new System.Drawing.Point(342, 0);
            this.panel11.Name = "panel11";
            this.panel11.Size = new System.Drawing.Size(445, 26);
            this.panel11.TabIndex = 0;
            // 
            // navigator_Page
            // 
            this.navigator_Page.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.navigator_Page.Location = new System.Drawing.Point(0, 8);
            this.navigator_Page.Name = "navigator_Page";
            this.navigator_Page.PageSize = 20;
            this.navigator_Page.RowCount = 0;
            this.navigator_Page.Size = new System.Drawing.Size(445, 18);
            this.navigator_Page.TabIndex = 0;
            this.navigator_Page.OnLoadViewStatus += new Library.Navigator.LoadViewStatusHandler(this.navigator_Page_OnLoadViewStatus);
            // 
            // panel9
            // 
            this.panel9.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel9.Location = new System.Drawing.Point(0, 487);
            this.panel9.Name = "panel9";
            this.panel9.Size = new System.Drawing.Size(787, 5);
            this.panel9.TabIndex = 3;
            // 
            // panel8
            // 
            this.panel8.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel8.Location = new System.Drawing.Point(0, 34);
            this.panel8.Name = "panel8";
            this.panel8.Size = new System.Drawing.Size(787, 8);
            this.panel8.TabIndex = 2;
            // 
            // pan_TopJianGe
            // 
            this.pan_TopJianGe.Dock = System.Windows.Forms.DockStyle.Top;
            this.pan_TopJianGe.Location = new System.Drawing.Point(0, 0);
            this.pan_TopJianGe.Name = "pan_TopJianGe";
            this.pan_TopJianGe.Size = new System.Drawing.Size(787, 8);
            this.pan_TopJianGe.TabIndex = 0;
            // 
            // pan_Rights
            // 
            this.pan_Rights.Dock = System.Windows.Forms.DockStyle.Right;
            this.pan_Rights.Location = new System.Drawing.Point(797, 10);
            this.pan_Rights.Name = "pan_Rights";
            this.pan_Rights.Size = new System.Drawing.Size(10, 492);
            this.pan_Rights.TabIndex = 3;
            // 
            // pan_Lefts
            // 
            this.pan_Lefts.Dock = System.Windows.Forms.DockStyle.Left;
            this.pan_Lefts.Location = new System.Drawing.Point(0, 10);
            this.pan_Lefts.Name = "pan_Lefts";
            this.pan_Lefts.Size = new System.Drawing.Size(10, 492);
            this.pan_Lefts.TabIndex = 2;
            // 
            // pan_Bottoms
            // 
            this.pan_Bottoms.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.pan_Bottoms.Location = new System.Drawing.Point(0, 502);
            this.pan_Bottoms.Name = "pan_Bottoms";
            this.pan_Bottoms.Size = new System.Drawing.Size(807, 10);
            this.pan_Bottoms.TabIndex = 1;
            // 
            // pane_TopT
            // 
            this.pane_TopT.Dock = System.Windows.Forms.DockStyle.Top;
            this.pane_TopT.Location = new System.Drawing.Point(0, 0);
            this.pane_TopT.Name = "pane_TopT";
            this.pane_TopT.Size = new System.Drawing.Size(807, 10);
            this.pane_TopT.TabIndex = 0;
            // 
            // pan_DockBottom
            // 
            this.pan_DockBottom.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(175)))), ((int)(((byte)(191)))), ((int)(((byte)(190)))));
            this.pan_DockBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.pan_DockBottom.Location = new System.Drawing.Point(1, 512);
            this.pan_DockBottom.Name = "pan_DockBottom";
            this.pan_DockBottom.Size = new System.Drawing.Size(807, 1);
            this.pan_DockBottom.TabIndex = 2;
            // 
            // pan_DockRight
            // 
            this.pan_DockRight.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(175)))), ((int)(((byte)(191)))), ((int)(((byte)(190)))));
            this.pan_DockRight.Dock = System.Windows.Forms.DockStyle.Right;
            this.pan_DockRight.Location = new System.Drawing.Point(808, 0);
            this.pan_DockRight.Name = "pan_DockRight";
            this.pan_DockRight.Size = new System.Drawing.Size(1, 513);
            this.pan_DockRight.TabIndex = 1;
            // 
            // pan_DockLeft
            // 
            this.pan_DockLeft.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(175)))), ((int)(((byte)(191)))), ((int)(((byte)(190)))));
            this.pan_DockLeft.Dock = System.Windows.Forms.DockStyle.Left;
            this.pan_DockLeft.Location = new System.Drawing.Point(0, 0);
            this.pan_DockLeft.Name = "pan_DockLeft";
            this.pan_DockLeft.Size = new System.Drawing.Size(1, 513);
            this.pan_DockLeft.TabIndex = 0;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(15)))), ((int)(((byte)(255)))));
            this.label1.Font = new System.Drawing.Font("宋体", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(59)))), ((int)(((byte)(86)))), ((int)(((byte)(20)))));
            this.label1.Location = new System.Drawing.Point(6, 8);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(63, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "帮助管理";
            // 
            // pan_Top
            // 
            this.pan_Top.Controls.Add(this.pan_ZhongJian);
            this.pan_Top.Controls.Add(this.pan_TopRight);
            this.pan_Top.Controls.Add(this.pan_TopLeft);
            this.pan_Top.Dock = System.Windows.Forms.DockStyle.Top;
            this.pan_Top.Location = new System.Drawing.Point(0, 0);
            this.pan_Top.Name = "pan_Top";
            this.pan_Top.Size = new System.Drawing.Size(809, 32);
            this.pan_Top.TabIndex = 4;
            // 
            // pan_ZhongJian
            // 
            this.pan_ZhongJian.BackgroundImage = global::WinForms.Properties.Resources.uc_title_2;
            this.pan_ZhongJian.Controls.Add(this.label1);
            this.pan_ZhongJian.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pan_ZhongJian.Location = new System.Drawing.Point(31, 0);
            this.pan_ZhongJian.Name = "pan_ZhongJian";
            this.pan_ZhongJian.Size = new System.Drawing.Size(773, 32);
            this.pan_ZhongJian.TabIndex = 2;
            // 
            // pan_TopRight
            // 
            this.pan_TopRight.BackgroundImage = global::WinForms.Properties.Resources.uc_title_1;
            this.pan_TopRight.Dock = System.Windows.Forms.DockStyle.Right;
            this.pan_TopRight.Location = new System.Drawing.Point(804, 0);
            this.pan_TopRight.Name = "pan_TopRight";
            this.pan_TopRight.Size = new System.Drawing.Size(5, 32);
            this.pan_TopRight.TabIndex = 1;
            // 
            // pan_TopLeft
            // 
            this.pan_TopLeft.BackgroundImage = global::WinForms.Properties.Resources.uc_title;
            this.pan_TopLeft.Dock = System.Windows.Forms.DockStyle.Left;
            this.pan_TopLeft.Location = new System.Drawing.Point(0, 0);
            this.pan_TopLeft.Name = "pan_TopLeft";
            this.pan_TopLeft.Size = new System.Drawing.Size(31, 32);
            this.pan_TopLeft.TabIndex = 0;
            // 
            // FrmhelpsList
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(809, 545);
            this.Controls.Add(this.pan_Dock);
            this.Controls.Add(this.pan_Top);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Name = "FrmhelpsList";
            this.Text = "FrmChain";
            this.Load += new System.EventHandler(this.FrmhelpsList_Load);
            this.panel4.ResumeLayout(false);
            this.panel14.ResumeLayout(false);
            this.panel15.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.panel5.ResumeLayout(false);
            this.pan_Dock.ResumeLayout(false);
            this.pan_AllPanel.ResumeLayout(false);
            this.pan_AllPlanes.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.DataGridList)).EndInit();
            this.panel10.ResumeLayout(false);
            this.panel12.ResumeLayout(false);
            this.panel12.PerformLayout();
            this.panel11.ResumeLayout(false);
            this.pan_Top.ResumeLayout(false);
            this.pan_ZhongJian.ResumeLayout(false);
            this.pan_ZhongJian.PerformLayout();
            this.ResumeLayout(false);

        }

        private void InitPage()
        {
            this.navigator_Page.PageSize = PublicAppliction.PageCount;
            this.navigator_Page.DataContainer = this.DataGridList;
            this.navigator_Page.Init();
        }

        private void navigator_Page_OnLoadViewStatus()
        {
            this.DataGrid_bind();
            this.navigator_Page.PageSize = PublicAppliction.PageCount;
            this.navigator_Page.DataContainer = this.DataGridList;
            this.navigator_Page.DataBind();
        }
    }
}

